<?php /* Create Plan Controller */
	require_once('modules/plans/actions/create/scripts/validate-plan.php');
	if (isset($_POST['form-action'])) { //se envio formulario
		$validacion = validarPlan();
		if (!empty($validacion)) { //fallo validacion
			require_once('modules/plans/actions/create/view/create-plan.php');
		} else { //si valido correcto
			$plan = $plan->create();
			require_once('modules/plans/actions/list/index.php');
		}
	} else { //pre-carga
		require_once('modules/plans/actions/create/view/create-plan.php');
	}
?>